<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsuario extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('usuario', function (Blueprint $table) {
            $table->increments('id_usuario');
            $table->string('pass',30);
            $table->string('nombre',30);
            $table->string('email',40)->nullable();
            $table->integer('tipo');
            $table->date('fecha_registro');
            $table->string('datos_adicionales',50)->nullable();
            
            //            $table->primary('id_usuario');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('usuario');
    }
}
